#ifndef RESULT_H
#define RESULT_H

#include <QString>
#include <QMutex>

#define RESULT_TIME_COL             1
#define RESULT_UDID_COL             2
#define RESULT_CLIENTNAME_COL       3
#define RESULT_MAC_COL              4
#define RESULT_APPKEY_COL           5
#define RESULT_RTC_COL              6
#define RESULT_SDCARD_COL           7
#define RESULT_WIFI_COL             8
#define RESULT_POWER_COL            9
#define RESULT_MANAUL_COL           10
#define RESULT_AUTH_COL             11
#define RESULT_RESULT_COL           12

class result
{
private:
    QString         filename;
    int             idle_line;
    QMutex          mutex;

public:
    result();
    result(QString filename);
    void Set_filename(QString name);
    QString Get_filename(void);
    int Open_file(void);
    int Get_line(void);
    int Write_result(int line,int col, QString result);
};

#endif // RESULT_H
